import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  // {
  //   path: '/',
  //   redirect: '/login'
  // },
  // {
  //   path: '/login',
  //   component: () => import('@/views/login/login.vue')
  // },
  {
    path: '/all-food',
    component: () => import('@/views/index/components/all-food.vue')
  },
  {
    path: '/all-shop',
    component: () => import('@/views/index/components/all-shop.vue')
  },
  {
    path: '/all-order',
    component: () => import('@/views/index/components/all-order.vue')
  },
  {
    path: '/all-user',
    component: () => import('@/views/index/components/all-user.vue')
  },
  {
    path: '/custom-service',
    component: () => import('@/views/index/components/custom-service.vue')
  },
  {
    path: '/feedback',
    component: () => import('@/views/index/components/feedback.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  // base: process.env.BASE_URL,
  routes
})

export default router
